[Javascript] Split string by HTML entities?

Posted by user366124 on Stack Overflow See other posts from Stack Overflow or by user366124
Published on 2010-06-14T08:20:44Z Indexed on 2010/06/14 8:22 UTC
Read the original article Hit count: 169

Filed under:
|
|
|

Hello,
My string contain a lot of HTML entities, like this

"Hello <everybody>" there

And I want to split it by HTML entities into this :

Hello
everybody
there

Can anybody suggest me a way to do this please? May be using Regex? Thanks so much.

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about html